<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_abstract_scale.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__abstract__scale_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_abstract_scale.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_abstract_scale.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_engine.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_draw.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_div.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;qwt_interval.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qcoreevent.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">class </span>QwtAbstractScale::PrivateData</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    PrivateData():</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        maxMajor( 5 ),</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        maxMinor( 3 ),</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        stepSize( 0.0 )</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a> = <span class="keyword">new</span> <a class="code" href="class_qwt_linear_scale_engine.html">QwtLinearScaleEngine</a>();</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        scaleDraw = <span class="keyword">new</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    }</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    ~PrivateData()</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keyword">delete</span> scaleDraw;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="class_qwt_scale_engine.html">QwtScaleEngine</a>* <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html">QwtAbstractScaleDraw</a>* scaleDraw;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">int</span> maxMajor;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">int</span> maxMinor;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">double</span> stepSize;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;};</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a97fff64367cdbe7bc8dc56c41d5faf9e">   57</a></span>&#160;<a class="code" href="class_qwt_abstract_scale.html#a97fff64367cdbe7bc8dc56c41d5faf9e">QwtAbstractScale::QwtAbstractScale</a>( QWidget* parent )</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    : QWidget( parent )</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a647e6458305a0967077f4b1f03811c14">rescale</a>( 0.0, 100.0, m_data-&gt;stepSize );</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;}</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a73890593efff11427ea7a42a3ebadefd">   65</a></span>&#160;<a class="code" href="class_qwt_abstract_scale.html#a73890593efff11427ea7a42a3ebadefd">QwtAbstractScale::~QwtAbstractScale</a>()</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;}</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#aa1b73da4589370fc14fd2ef49b02d142">   79</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#aa1b73da4589370fc14fd2ef49b02d142">QwtAbstractScale::setLowerBound</a>( <span class="keywordtype">double</span> value )</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;{</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">setScale</a>( value, <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>() );</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">   88</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">QwtAbstractScale::lowerBound</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleDiv().lowerBound();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a1b2ea5c97eb19ccd55ec83713ab675fe">  102</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#a1b2ea5c97eb19ccd55ec83713ab675fe">QwtAbstractScale::setUpperBound</a>( <span class="keywordtype">double</span> value )</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;{</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">setScale</a>( <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>(), value );</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">  111</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">QwtAbstractScale::upperBound</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleDiv().upperBound();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;}</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">  130</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a>( <span class="keywordtype">double</span> lowerBound, <span class="keywordtype">double</span> upperBound )</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;{</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a647e6458305a0967077f4b1f03811c14">rescale</a>( <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>, <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>, m_data-&gt;stepSize );</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ab54877c80f0b00fdb6e4745448aee128">  145</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_interval.html">QwtInterval</a>&amp; interval )</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">setScale</a>( interval.<a class="code" href="class_qwt_interval.html#a0df143a36d76a677976d82987cab8a06">minValue</a>(), interval.<a class="code" href="class_qwt_interval.html#a44820fa5d6e6cefa59dc31ea0d522d61">maxValue</a>() );</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ad002e1a352ecf85c1a8595a138d42db7">  158</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; scaleDiv )</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;{</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a> != m_data-&gt;scaleDraw-&gt;scaleDiv() )</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor">#if 1</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;scaleEngine )</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            m_data-&gt;scaleDraw-&gt;setTransformation(</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                m_data-&gt;scaleEngine-&gt;transformation() );</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        m_data-&gt;scaleDraw-&gt;setScaleDiv( <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a> );</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#a0dbb7bdc557c0a7b163643e41970ed6a">scaleChange</a>();</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;}</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a40fdb4572ad8fdec8b93766ff5f8eda8">  189</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#a40fdb4572ad8fdec8b93766ff5f8eda8">QwtAbstractScale::setScaleMaxMajor</a>( <span class="keywordtype">int</span> ticks )</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;{</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">if</span> ( ticks != m_data-&gt;maxMajor )</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    {</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        m_data-&gt;maxMajor = ticks;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#ad4015d13f98c9a48fb5d6321647f1323">updateScaleDraw</a>();</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;}</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a951e85ddbf8b0edaa91a9d300a92dd4e">  202</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_abstract_scale.html#a951e85ddbf8b0edaa91a9d300a92dd4e">QwtAbstractScale::scaleMaxMajor</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;maxMajor;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a6520bb1e52571f865b21b3710786a4db">  219</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#a6520bb1e52571f865b21b3710786a4db">QwtAbstractScale::setScaleMaxMinor</a>( <span class="keywordtype">int</span> ticks )</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;{</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordflow">if</span> ( ticks != m_data-&gt;maxMinor )</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        m_data-&gt;maxMinor = ticks;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#ad4015d13f98c9a48fb5d6321647f1323">updateScaleDraw</a>();</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ae6e5881dddd6d1340be4750c115d29dd">  232</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_abstract_scale.html#ae6e5881dddd6d1340be4750c115d29dd">QwtAbstractScale::scaleMaxMinor</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;maxMinor;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;}</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#aac745efd9414e529794e2189f7c535cb">  251</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#aac745efd9414e529794e2189f7c535cb">QwtAbstractScale::setScaleStepSize</a>( <span class="keywordtype">double</span> stepSize )</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;{</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">if</span> ( stepSize != m_data-&gt;stepSize )</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        m_data-&gt;stepSize = stepSize;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#ad4015d13f98c9a48fb5d6321647f1323">updateScaleDraw</a>();</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    }</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;}</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a6fa69e27596cef1672cf8bf3c3dc547c">  264</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_abstract_scale.html#a6fa69e27596cef1672cf8bf3c3dc547c">QwtAbstractScale::scaleStepSize</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;stepSize;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;}</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">  277</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">QwtAbstractScale::setAbstractScaleDraw</a>( <a class="code" href="class_qwt_abstract_scale_draw.html">QwtAbstractScaleDraw</a>* scaleDraw )</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;{</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keywordflow">if</span> ( scaleDraw == NULL || scaleDraw == m_data-&gt;scaleDraw )</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;scaleDraw != NULL )</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        scaleDraw-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a149792f955cc3f05c16362338bcc98c4">setScaleDiv</a>( m_data-&gt;scaleDraw-&gt;scaleDiv() );</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keyword">delete</span> m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    m_data-&gt;scaleDraw = scaleDraw;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;}</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; </div>
<div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#aa61afdff037ef745a6dad686537cdb96">  293</a></span>&#160;<a class="code" href="class_qwt_abstract_scale_draw.html">QwtAbstractScaleDraw</a>* <a class="code" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">QwtAbstractScale::abstractScaleDraw</a>()</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;{</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;}</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">  302</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_abstract_scale_draw.html">QwtAbstractScaleDraw</a>* <a class="code" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">QwtAbstractScale::abstractScaleDraw</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;}</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#aa00f44140af3f2b7595cb6e23371198f">  316</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#aa00f44140af3f2b7595cb6e23371198f">QwtAbstractScale::setScaleEngine</a>( <a class="code" href="class_qwt_scale_engine.html">QwtScaleEngine</a>* scaleEngine )</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;{</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a> != NULL &amp;&amp; <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a> != m_data-&gt;scaleEngine )</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    {</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        <span class="keyword">delete</span> m_data-&gt;scaleEngine;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        m_data-&gt;scaleEngine = <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">scaleEngine</a>;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    }</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;}</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">  329</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_scale_engine.html">QwtScaleEngine</a>* <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">QwtAbstractScale::scaleEngine</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleEngine;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;}</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#aea3b9d4912f1c28671f232e4100936d7">  338</a></span>&#160;<a class="code" href="class_qwt_scale_engine.html">QwtScaleEngine</a>* <a class="code" href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">QwtAbstractScale::scaleEngine</a>()</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;{</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleEngine;</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;}</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">  349</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">QwtAbstractScale::scaleDiv</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleDiv();</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;}</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">  357</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">QwtAbstractScale::scaleMap</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleMap();</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;}</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a6fac557f38c8121b97fda514cf91bcbf">  369</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_abstract_scale.html#a6fac557f38c8121b97fda514cf91bcbf">QwtAbstractScale::transform</a>( <span class="keywordtype">double</span> value )<span class="keyword"> const</span></div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <span class="keywordflow">return</span> qRound( m_data-&gt;scaleDraw-&gt;scaleMap().transform( value ) );</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;}</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; </div>
<div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a50932c4bed140da5ce96b6718de2636b">  381</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_abstract_scale.html#a50932c4bed140da5ce96b6718de2636b">QwtAbstractScale::invTransform</a>( <span class="keywordtype">int</span> value )<span class="keyword"> const</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleMap().invTransform( value );</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;}</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; </div>
<div class="line"><a name="l00390"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a8c649b5b370b06f5028fb83b78189e4a">  390</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_abstract_scale.html#a8c649b5b370b06f5028fb83b78189e4a">QwtAbstractScale::isInverted</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleMap().isInverting();</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;}</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160; </div>
<div class="line"><a name="l00399"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a87eb18286615cf791d90a2b1388ac19a">  399</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_abstract_scale.html#a87eb18286615cf791d90a2b1388ac19a">QwtAbstractScale::minimum</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="keywordflow">return</span> qMin( m_data-&gt;scaleDraw-&gt;scaleDiv().lowerBound(),</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        m_data-&gt;scaleDraw-&gt;scaleDiv().upperBound() );</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;}</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ab904fda71caf6fc642ce6f12bac78b77">  409</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_abstract_scale.html#ab904fda71caf6fc642ce6f12bac78b77">QwtAbstractScale::maximum</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <span class="keywordflow">return</span> qMax( m_data-&gt;scaleDraw-&gt;scaleDiv().lowerBound(),</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        m_data-&gt;scaleDraw-&gt;scaleDiv().upperBound() );</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;}</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a0dbb7bdc557c0a7b163643e41970ed6a">  416</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#a0dbb7bdc557c0a7b163643e41970ed6a">QwtAbstractScale::scaleChange</a>()</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;{</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;}</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#a647e6458305a0967077f4b1f03811c14">  429</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#a647e6458305a0967077f4b1f03811c14">QwtAbstractScale::rescale</a>(</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <span class="keywordtype">double</span> lowerBound, <span class="keywordtype">double</span> upperBound, <span class="keywordtype">double</span> stepSize )</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;{</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a> = m_data-&gt;scaleEngine-&gt;divideScale(</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>, <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>, m_data-&gt;maxMajor, m_data-&gt;maxMinor, stepSize );</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160; </div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a> != m_data-&gt;scaleDraw-&gt;scaleDiv() )</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    {</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;<span class="preprocessor">#if 1</span></div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;        m_data-&gt;scaleDraw-&gt;setTransformation(</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;            m_data-&gt;scaleEngine-&gt;transformation() );</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160; </div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        m_data-&gt;scaleDraw-&gt;setScaleDiv( <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a> );</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        <a class="code" href="class_qwt_abstract_scale.html#a0dbb7bdc557c0a7b163643e41970ed6a">scaleChange</a>();</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    }</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;}</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160; </div>
<div class="line"><a name="l00453"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#af0927183d21284a5c37a82a04bfe2942">  453</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#af0927183d21284a5c37a82a04bfe2942">QwtAbstractScale::changeEvent</a>( QEvent* event )</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;{</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <span class="keywordflow">if</span> ( event-&gt;type() == QEvent::LocaleChange )</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    {</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;        m_data-&gt;scaleDraw-&gt;invalidateCache();</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    }</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160; </div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    QWidget::changeEvent( event );</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;}</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160; </div>
<div class="line"><a name="l00466"></a><span class="lineno"><a class="line" href="class_qwt_abstract_scale.html#ad4015d13f98c9a48fb5d6321647f1323">  466</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_abstract_scale.html#ad4015d13f98c9a48fb5d6321647f1323">QwtAbstractScale::updateScaleDraw</a>()</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;{</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a647e6458305a0967077f4b1f03811c14">rescale</a>( m_data-&gt;scaleDraw-&gt;scaleDiv().lowerBound(),</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        m_data-&gt;scaleDraw-&gt;scaleDiv().upperBound(), m_data-&gt;stepSize );</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;}</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="preprocessor">#if QWT_MOC_INCLUDE</span></div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;<span class="preprocessor">#include &quot;moc_qwt_abstract_scale.cpp&quot;</span></div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html">QwtAbstractScaleDraw</a></div><div class="ttdoc">A abstract base class for drawing scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00031">qwt_abstract_scale_draw.h:32</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a149792f955cc3f05c16362338bcc98c4"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a149792f955cc3f05c16362338bcc98c4">QwtAbstractScaleDraw::setScaleDiv</a></div><div class="ttdeci">void setScaleDiv(const QwtScaleDiv &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00104">qwt_abstract_scale_draw.cpp:104</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a0dbb7bdc557c0a7b163643e41970ed6a"><div class="ttname"><a href="class_qwt_abstract_scale.html#a0dbb7bdc557c0a7b163643e41970ed6a">QwtAbstractScale::scaleChange</a></div><div class="ttdeci">virtual void scaleChange()</div><div class="ttdoc">Notify changed scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00416">qwt_abstract_scale.cpp:416</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a116c7877f4d9fc3620ffa713b5bbdb96"><div class="ttname"><a href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">QwtAbstractScale::scaleMap</a></div><div class="ttdeci">const QwtScaleMap &amp; scaleMap() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00357">qwt_abstract_scale.cpp:357</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a1b2ea5c97eb19ccd55ec83713ab675fe"><div class="ttname"><a href="class_qwt_abstract_scale.html#a1b2ea5c97eb19ccd55ec83713ab675fe">QwtAbstractScale::setUpperBound</a></div><div class="ttdeci">void setUpperBound(double value)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00102">qwt_abstract_scale.cpp:102</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a40fdb4572ad8fdec8b93766ff5f8eda8"><div class="ttname"><a href="class_qwt_abstract_scale.html#a40fdb4572ad8fdec8b93766ff5f8eda8">QwtAbstractScale::setScaleMaxMajor</a></div><div class="ttdeci">void setScaleMaxMajor(int ticks)</div><div class="ttdoc">Set the maximum number of major tick intervals.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00189">qwt_abstract_scale.cpp:189</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a41b46b9bf8b6d7986cc64c766f3b667c"><div class="ttname"><a href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">QwtAbstractScale::lowerBound</a></div><div class="ttdeci">double lowerBound() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00088">qwt_abstract_scale.cpp:88</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a473e84e72bd52afac58c04d004b5c06a"><div class="ttname"><a href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">QwtAbstractScale::abstractScaleDraw</a></div><div class="ttdeci">const QwtAbstractScaleDraw * abstractScaleDraw() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00302">qwt_abstract_scale.cpp:302</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a50932c4bed140da5ce96b6718de2636b"><div class="ttname"><a href="class_qwt_abstract_scale.html#a50932c4bed140da5ce96b6718de2636b">QwtAbstractScale::invTransform</a></div><div class="ttdeci">double invTransform(int) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00381">qwt_abstract_scale.cpp:381</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a5dc4f746d4dfacb8a1a57cf85deccf64"><div class="ttname"><a href="class_qwt_abstract_scale.html#a5dc4f746d4dfacb8a1a57cf85deccf64">QwtAbstractScale::scaleEngine</a></div><div class="ttdeci">const QwtScaleEngine * scaleEngine() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00329">qwt_abstract_scale.cpp:329</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a647e6458305a0967077f4b1f03811c14"><div class="ttname"><a href="class_qwt_abstract_scale.html#a647e6458305a0967077f4b1f03811c14">QwtAbstractScale::rescale</a></div><div class="ttdeci">void rescale(double lowerBound, double upperBound, double stepSize)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00429">qwt_abstract_scale.cpp:429</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a6520bb1e52571f865b21b3710786a4db"><div class="ttname"><a href="class_qwt_abstract_scale.html#a6520bb1e52571f865b21b3710786a4db">QwtAbstractScale::setScaleMaxMinor</a></div><div class="ttdeci">void setScaleMaxMinor(int ticks)</div><div class="ttdoc">Set the maximum number of minor tick intervals.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00219">qwt_abstract_scale.cpp:219</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a68d4d5a6f44ae4574d5ad8200aaa017f"><div class="ttname"><a href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">QwtAbstractScale::scaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; scaleDiv() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00349">qwt_abstract_scale.cpp:349</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a6fa69e27596cef1672cf8bf3c3dc547c"><div class="ttname"><a href="class_qwt_abstract_scale.html#a6fa69e27596cef1672cf8bf3c3dc547c">QwtAbstractScale::scaleStepSize</a></div><div class="ttdeci">double scaleStepSize() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00264">qwt_abstract_scale.cpp:264</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a6fac557f38c8121b97fda514cf91bcbf"><div class="ttname"><a href="class_qwt_abstract_scale.html#a6fac557f38c8121b97fda514cf91bcbf">QwtAbstractScale::transform</a></div><div class="ttdeci">int transform(double) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00369">qwt_abstract_scale.cpp:369</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a73890593efff11427ea7a42a3ebadefd"><div class="ttname"><a href="class_qwt_abstract_scale.html#a73890593efff11427ea7a42a3ebadefd">QwtAbstractScale::~QwtAbstractScale</a></div><div class="ttdeci">virtual ~QwtAbstractScale()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00065">qwt_abstract_scale.cpp:65</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a87eb18286615cf791d90a2b1388ac19a"><div class="ttname"><a href="class_qwt_abstract_scale.html#a87eb18286615cf791d90a2b1388ac19a">QwtAbstractScale::minimum</a></div><div class="ttdeci">double minimum() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00399">qwt_abstract_scale.cpp:399</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a8c649b5b370b06f5028fb83b78189e4a"><div class="ttname"><a href="class_qwt_abstract_scale.html#a8c649b5b370b06f5028fb83b78189e4a">QwtAbstractScale::isInverted</a></div><div class="ttdeci">bool isInverted() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00390">qwt_abstract_scale.cpp:390</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a950c5bf521dc704b78f76c7951346288"><div class="ttname"><a href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">QwtAbstractScale::setAbstractScaleDraw</a></div><div class="ttdeci">void setAbstractScaleDraw(QwtAbstractScaleDraw *)</div><div class="ttdoc">Set a scale draw.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00277">qwt_abstract_scale.cpp:277</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a951e85ddbf8b0edaa91a9d300a92dd4e"><div class="ttname"><a href="class_qwt_abstract_scale.html#a951e85ddbf8b0edaa91a9d300a92dd4e">QwtAbstractScale::scaleMaxMajor</a></div><div class="ttdeci">int scaleMaxMajor() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00202">qwt_abstract_scale.cpp:202</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a97fff64367cdbe7bc8dc56c41d5faf9e"><div class="ttname"><a href="class_qwt_abstract_scale.html#a97fff64367cdbe7bc8dc56c41d5faf9e">QwtAbstractScale::QwtAbstractScale</a></div><div class="ttdeci">QwtAbstractScale(QWidget *parent=NULL)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00057">qwt_abstract_scale.cpp:57</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_aa00f44140af3f2b7595cb6e23371198f"><div class="ttname"><a href="class_qwt_abstract_scale.html#aa00f44140af3f2b7595cb6e23371198f">QwtAbstractScale::setScaleEngine</a></div><div class="ttdeci">void setScaleEngine(QwtScaleEngine *)</div><div class="ttdoc">Set a scale engine.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00316">qwt_abstract_scale.cpp:316</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_aa1b73da4589370fc14fd2ef49b02d142"><div class="ttname"><a href="class_qwt_abstract_scale.html#aa1b73da4589370fc14fd2ef49b02d142">QwtAbstractScale::setLowerBound</a></div><div class="ttdeci">void setLowerBound(double value)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00079">qwt_abstract_scale.cpp:79</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_aac745efd9414e529794e2189f7c535cb"><div class="ttname"><a href="class_qwt_abstract_scale.html#aac745efd9414e529794e2189f7c535cb">QwtAbstractScale::setScaleStepSize</a></div><div class="ttdeci">void setScaleStepSize(double stepSize)</div><div class="ttdoc">Set the step size used for calculating a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00251">qwt_abstract_scale.cpp:251</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ab904fda71caf6fc642ce6f12bac78b77"><div class="ttname"><a href="class_qwt_abstract_scale.html#ab904fda71caf6fc642ce6f12bac78b77">QwtAbstractScale::maximum</a></div><div class="ttdeci">double maximum() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00409">qwt_abstract_scale.cpp:409</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ad4015d13f98c9a48fb5d6321647f1323"><div class="ttname"><a href="class_qwt_abstract_scale.html#ad4015d13f98c9a48fb5d6321647f1323">QwtAbstractScale::updateScaleDraw</a></div><div class="ttdeci">void updateScaleDraw()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00466">qwt_abstract_scale.cpp:466</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae5696dae4e4cc4332a84453a0ce18cc8"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">QwtAbstractScale::upperBound</a></div><div class="ttdeci">double upperBound() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00111">qwt_abstract_scale.cpp:111</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae6e5881dddd6d1340be4750c115d29dd"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae6e5881dddd6d1340be4750c115d29dd">QwtAbstractScale::scaleMaxMinor</a></div><div class="ttdeci">int scaleMaxMinor() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00232">qwt_abstract_scale.cpp:232</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae9640e814b5029d7dd79cb3ba752102b"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a></div><div class="ttdeci">void setScale(double lowerBound, double upperBound)</div><div class="ttdoc">Specify a scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00130">qwt_abstract_scale.cpp:130</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_af0927183d21284a5c37a82a04bfe2942"><div class="ttname"><a href="class_qwt_abstract_scale.html#af0927183d21284a5c37a82a04bfe2942">QwtAbstractScale::changeEvent</a></div><div class="ttdeci">virtual void changeEvent(QEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00453">qwt_abstract_scale.cpp:453</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html"><div class="ttname"><a href="class_qwt_interval.html">QwtInterval</a></div><div class="ttdoc">A class representing an interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00022">qwt_interval.h:23</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a0df143a36d76a677976d82987cab8a06"><div class="ttname"><a href="class_qwt_interval.html#a0df143a36d76a677976d82987cab8a06">QwtInterval::minValue</a></div><div class="ttdeci">double minValue() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00192">qwt_interval.h:192</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a44820fa5d6e6cefa59dc31ea0d522d61"><div class="ttname"><a href="class_qwt_interval.html#a44820fa5d6e6cefa59dc31ea0d522d61">QwtInterval::maxValue</a></div><div class="ttdeci">double maxValue() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00198">qwt_interval.h:198</a></div></div>
<div class="ttc" id="aclass_qwt_linear_scale_engine_html"><div class="ttname"><a href="class_qwt_linear_scale_engine.html">QwtLinearScaleEngine</a></div><div class="ttdoc">A scale engine for linear scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__engine_8h_source.html#l00151">qwt_scale_engine.h:152</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html"><div class="ttname"><a href="class_qwt_scale_div.html">QwtScaleDiv</a></div><div class="ttdoc">A class representing a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00033">qwt_scale_div.h:34</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html"><div class="ttname"><a href="class_qwt_scale_draw.html">QwtScaleDraw</a></div><div class="ttdoc">A class for drawing scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00035">qwt_scale_draw.h:36</a></div></div>
<div class="ttc" id="aclass_qwt_scale_engine_html"><div class="ttname"><a href="class_qwt_scale_engine.html">QwtScaleEngine</a></div><div class="ttdoc">Base class for scale engines.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__engine_8h_source.html#l00045">qwt_scale_engine.h:46</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html"><div class="ttname"><a href="class_qwt_scale_map.html">QwtScaleMap</a></div><div class="ttdoc">A scale map.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00026">qwt_scale_map.h:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_abstract_scale.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
